#ifndef CAPTUREVIDEOTRACKSOURCE_H
#define CAPTUREVIDEOTRACKSOURCE_H

#include <QObject>
#include "pc/video_track_source.h"
#include "CameraVideoCapture.h"

class CaptureVideoTrackSource : public QObject, public webrtc::VideoTrackSource
{
    Q_OBJECT
public:
    static rtc::scoped_refptr<CaptureVideoTrackSource> create(
            const int &iWidth, const int &iHeight, const int &iFPS, const QString &strID);


protected:

    virtual rtc::VideoSourceInterface<webrtc::VideoFrame> *source() override;
Q_SIGNALS:

protected:
    explicit CaptureVideoTrackSource(
            const int &iWidth, const int &iHeight, const int &iFPS, const QString &strID, QObject *parent = nullptr);
private:
    CameraVideoCapture m_cameraVideoCapture;
};

#endif // CAPTUREVIDEOTRACKSOURCE_H
